<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./static/bootstrap-3.4.1/js/bootstrap.js"></script>
    <script src="./static/bootstrap-3.4.1/js/bootoast.js"></script>
    <script>
        $(function () {

        })
        function loadRooms() {
            $.getJSON("/room/selectAll",function(data){
                console.log(data)
                for (let room of data) {
                let rowItem=`<tr>
          <td>${i}</td>
          <td>${room.rNum}</td>
          <td>${room.typeEntity.tName}</td>
          <td>
          <button class="btn btn-primary">修改</button>
          <button class="btn btn-primary">刪除</button>
         </td>
          </tr> `
                    $("tbody").append(rowItem);
                    i++;
                }
            }
        }
    </script>
</head>
<body>

</body>
</html>